package com.meisupic.copyright.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.meisupic.copyright.util.DictionaryUtil;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * @author wuxun
 * @version V1.0
 * @Description: TODO
 * @date 2018/1/27 0:10
 */
@Data
public class PageRealNameAuthVo implements Serializable{

  private static final long serialVersionUID = -5980025506281540354L;

  private Long id;

  private String authName;

  private String authType;

  private String authTypeName;

  private Integer documentType;

  private String documentTypeName;

  private String documetNo;

  private String mobile;

  private String accountId;

  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  private Date createTime;

  public String getAuthTypeName() {
    authTypeName = DictionaryUtil.getDicNameByValue(this.getAuthType(), "AUTHTYPE");
    return authTypeName;
  }

  public String getDocumentTypeName() {
    return DictionaryUtil.getDicNameByValue(this.getDocumentType().toString(), "DOCMENTTYPE");
  }
}
